package com.zerocarbon.framework.web.extension;

import com.zerocarbon.framework.common.result.Result;

public class ValidateResult<T> {

	private boolean success;		//校验是否通过
	
	private Result<T> result;
	
	public ValidateResult() {
		super();
	}
	
	public ValidateResult(boolean success) {
		this.success = success;
	}
	
	public ValidateResult(boolean success, Result<T> result) {
		this.success = success;
		this.result = result;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Result<T> getResult() {
		return result;
	}

	public void setResult(Result<T> result) {
		this.result = result;
	}
}
